import Vue from 'vue'


const toTime = (value) => {
    let date = new Date(value);
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let day = date.getDate();
    let hours = date.getHours();
    let minutes = date.getMinutes();
    console.log(hours,"itemitemitemitemitemitemitem",date.getMinutes())
    return year + "-" + month + "-" + day + ' ' + hours + ":" + minutes;
}


Vue.filter('toTime', toTime)